package com.mzkj.wanjulaile.mobile.api.modules.order.mapper;

import com.mzkj.wanjulaile.mobile.api.modules.order.entity.OrderToy;
import com.mzkj.wanjulaile.mobile.api.modules.toy.entity.Toy;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface OrderToyMapper {

    /**
     * 根据订单id查询订单玩具信息
     * @param orderId
     * @return
     */
    List<OrderToy> getListByOrderId(String orderId);

    /**
     * 根据订单id 玩具id修改订单玩具的状态
     * @param orderToy
     */
    void updateStatusByOrderIdAndToyId(OrderToy orderToy);

    List<Toy> getToyListToyByOrderId(String orderId);

    void  update(OrderToy orderToy);

    OrderToy get(String id);

    void insert(OrderToy orderToy);

    List<OrderToy> findList(OrderToy orderToy);

    void delete(OrderToy orderToy);

    void updateToyStatusByOrderId(OrderToy orderToy);
}